
import _region as reg
from _region import Rotated, Translated, Polygon, metric_wcs

def aa(a,b=2):
    print a, b
    
def with_context(func):
    def newfunc(*args):
        kw = dict(c=metric_wcs)
        return func(*args, **kw)
    return newfunc



__dict__.extend(dict(Circle=with_context(reg.Circle),
                     Ellipse=with_context(reg.Ellipse),
                     Box=with_context(reg.Box),
                     )
                )


